import { Module, Global } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { SwaggerService } from './swagger.service';

/**
 * Swagger 文档模块 - 基础设施层
 * 基于 NestJS 官方文档实现
 * 参考: https://docs.nestjs.cn/recipes/swagger
 */
@Module({
  imports: [ConfigModule],
  providers: [SwaggerService],
  exports: [SwaggerService],
})
export class SwaggerModule {}
